package com.example.userserver.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


/**
 *   分页参数
 */
@ApiModel(value = "BasePageParams", description = "分页参数")
public class BasePageParams {

    @ApiModelProperty(value = "当前页 1开始", required = true, example = "1", dataType = "Integer")
    private Integer pageNum = 1;
    @ApiModelProperty(value = "每页结果数", required = true, example = "20", dataType = "Integer")
    private Integer pageSize = 20;
    @ApiModelProperty(value = "排序", dataType = "String")
    private String orderBy;

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

}
